package com.sdgakj.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by yl on 2017/5/19.
 * 家族大事记的实体类
 */
@Entity
@Table(name = "ff_statistics")
public class Fstatistics extends IdEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long ffsPersoCount;//总人数
    private Long ffsGeneration;//世代数
    private String ffsDistrict;//区域分布
    private int ffsMalecount;//女
    private int ffsManlecount;//男
    private int ffsLivecount;
    private int ffsDlivecount;
    private String ffsEducation;
    private String ffsGenerationCount;
    private Timestamp createtime;
    private Timestamp updatetime;
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "f_id")
    private Long fId;
    private String ffsGennumber;




    public void setFfsMalecount(int ffsMalecount) {
        this.ffsMalecount = ffsMalecount;
    }

    public int getFfsManlecount() {
        return ffsManlecount;
    }

    public void setFfsManlecount(int ffsManlecount) {
        this.ffsManlecount = ffsManlecount;
    }

    public int getFfsLivecount() {
        return ffsLivecount;
    }

    public void setFfsLivecount(int ffsLivecount) {
        this.ffsLivecount = ffsLivecount;
    }

    public int getFfsDlivecount() {
        return ffsDlivecount;
    }

    public void setFfsDlivecount(int ffsDlivecount) {
        this.ffsDlivecount = ffsDlivecount;
    }


    public Fstatistics() {
    }

    public Fstatistics(Long ffsPersoCount,String ffsGenerationCount, Long ffsGeneration, Timestamp fnCreatetime, Timestamp fnUpdatetime, Family family) {
        this.ffsPersoCount = ffsPersoCount;
        this.ffsGenerationCount = ffsGenerationCount;
        this.ffsGeneration = ffsGeneration;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.fId = fId;
    }


    public Long getFfsPersoCount() {
        return ffsPersoCount;
    }

    public void setFfsPersoCount(Long ffsPersoCount) {
        this.ffsPersoCount = ffsPersoCount;
    }
    public Long getFfsGeneration() {
        return ffsGeneration;
    }

    public void setFfsGeneration(Long ffsGeneration) {
        this.ffsGeneration = ffsGeneration;
    }

    public String getFfsDistrict() {
        return ffsDistrict;
    }

    public void setFfsDistrict(String ffsDistrict) {
        this.ffsDistrict = ffsDistrict;
    }


    public String getFfsEducation() {
        return ffsEducation;
    }

    public void setFfsEducation(String ffsEducation) {
        this.ffsEducation = ffsEducation;
    }

    public String getFfsGenerationCount() {
        return ffsGenerationCount;
    }

    public void setFfsGenerationCount(String ffsGenerationCount) {
        this.ffsGenerationCount = ffsGenerationCount;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    public Long getfId() {
        return fId;
    }

    public void setfId(Long fId) {
        this.fId = fId;
    }

    public String getFfsGennumber() {
        return ffsGennumber;
    }

    public void setFfsGennumber(String ffsGennumber) {
        this.ffsGennumber = ffsGennumber;
    }

    public int getFfsMalecount() {
        return ffsMalecount;
    }
}